import request from '@/utils/request'

export const pageQuery = (search,page,pageSize)=>request.get(`/emps?name=${search.name}&gender=${search.gender}&begin=${search.begin}&end=${search.end}&page=${page}&pageSize=${pageSize}`)


export const addEmp=(emp)=>request.post('/emps',emp);

export const getById=(id)=>request.get(`/emps/${id}`);

export const updataById=(data)=>request.put('/emps',data);

export const deleteByIds=(id)=>request.delete("/emps?ids="+id);